package ca.uguu.unknown_space.worldobjects.background;

import java.util.AbstractMap;

import ca.uguu.gamelib.libgdx.structures.BoundedFloat;

public class ShipDef extends VesselDef {
	final public BoundedFloat enginesIntegrity;
	
	public ShipDef(String vesselType){
		super(vesselType);
		this.enginesIntegrity = new BoundedFloat();
	}
	public ShipDef(AbstractMap<String, Object> definition){
		super(definition);
		this.enginesIntegrity = new BoundedFloat((Float)definition.get("enginesIntegrity"));
	}
	
	public AbstractMap<String, Object> serialise(){
		AbstractMap<String, Object> content = super.serialise();
		content.put("enginesIntegrity", this.enginesIntegrity.get());
		return content;
	}
}
